/*
 * @Author: xiaxia
 * @Description: 
 * @Date: 2024-06-19 17:52:58
 * @LastEditTime: 2024-06-26 11:31:38
 * @FilePath: \project\src\api\user\index.ts
 */
import request from "@/utils/request";
import type { loginForm, loginResponse, userPesponseData } from "./type";

enum API{
  LOGIN_URL="/admin/acl/index/login",
  USERINFO_URL="/admin/acl/index/info",
  LOOUT_URL = "/admin/acl/index/logout"
}
export const reqLogin = (data:loginForm)=>request.post<any, loginResponse>(API.LOGIN_URL, data)
export const reqUserInfo = ()=>request.get<any, userPesponseData>(API.USERINFO_URL)
export const reqLogout = ()=>request.post<any, any>(API.LOOUT_URL)